import request from '@/utils/request'

/** 增 */
export function createTableDataAPI(data) {
  return request({
    url: 'table',
    method: 'post',
    data
  })
}

/** 删 */
export function deleteTableDataAPI(id) {
  return request({
    url: `table/${id}`,
    method: 'delete'
  })
}

/** 改 */
export function updateTableDataAPI(data) {
  return request({
    url: 'table',
    method: 'put',
    data
  })
}

/** 查 */
export function getTableDataAPI(params) {
  return request({
    url: '/getList',
    method: 'get',
    params
  })
}
export function getvxeTableDataAPI(params) {
  return request({
    url: '/getList-vxeTable',
    method: 'get',
    params
  })
}
